package com.fesine.ch02.atomicIntegerNoSafe;

/**
 * @description: 类描述
 * @author: Fesine
 * @createTime:2016/7/14 15:01
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2016/7/14 15:01
 */
public class MyThread extends Thread {
    private MyService myService;

    public MyThread(MyService myService) {
        this.myService = myService;
    }

    @Override
    public void run() {
        myService.addNum();
    }
}
